﻿
using System.Web.Mvc;

namespace good1.Web.Controllers.Utility
{

    public class ViewEngineCustom : WebFormViewEngine
    {

        public ViewEngineCustom()
        {
            MasterLocationFormats = new[] {
                "~/Views/{1}/{0}.master", 
                "~/Views/Shared/{0}.master"
            };
            ViewLocationFormats = new[] {
                "~/Views/{1}/{0}.aspx", 
                "~/Views/{1}/{0}.ascx", 
                "~/Views/Shared/{0}.aspx", 
                "~/Views/Shared/{0}.ascx" ,
                "~/Views/Admin/{1}/{0}.aspx",
                "~/Views/Admin/{1}/{0}.ascx",
                "~/Views/Search/{0}.ascx",
                "~/Views/About/{0}.ascx"
            };
            PartialViewLocationFormats = ViewLocationFormats;
        }


    }

}
